﻿using System;
using System.Windows.Forms;

namespace HostsUpdater {
    class Program {

        [STAThread]
        static void Main(string[] args) {
            try {
                Just_Ping just_Ping = new Just_Ping("google.com");
                just_Ping.Query();
                just_Ping.GenerateHostsFile();
            }
            catch (Exception e) {
                MessageBox.Show("程序貌似出错了，请联系作者：\n Antony Wang \n anntony.wang@gmail.com");
            }
        }
    }
}
